<?php

/**
 * Description of SynchronizationPresenter
 *
 * @author David Dusek
 */
class SynchronizationPresenter extends BasePresenter {
    public function renderDefault($actionId, $estateId) {
        $this->setLayout("blank");
                
        if ($actionId == "update") {            
            $estateImport = new EstateImport($this->db);
            $estateImport->importEstate($estateId);
        } else if ($actionId == "delete") {
            $estateModel = new EstateModel($this->db);
            $estateModel->deactivate($estateId);
        }
//        NDebugger::dump($actionId);
//        NDebugger::dump($estateId);
    }
}
